import addressInfo from "@/utils/API/addressInfo";
import axiosInstance from "@/utils/axiosInstance";

const orderInfo = {
    submitOrder(orderData) {
        return axiosInstance.post(`/orderInfo/submitOrder`, orderData , {
            headers: {
                "Content-Type": "application/json"
            }
        })
    },
    getMyOrderListByPage({pageIndex}) {
        return axiosInstance.get(`orderInfo/getMyOrderListByPage`, {
            params: {
                pageIndex
            }
        })
    }
}

export default orderInfo